<template>
  <div class="module11-m">
    <div class="module11-m-head">
      <div class="module11-m-head-icon">
        <img :src="imgUrl46" alt="" class="icon" />
      </div>
      <div class="module11-m-head-title">魏营镇简介</div>
    </div>
    <div class="m-c-m1">
      <div class="sw-box">
        <el-carousel class="carousel" :interval="5000" arrow="never">
          <el-carousel-item
            v-for="(item, index) in data.carouselPicList1"
            :key="index"
          >
            <div class="xxnm">
              <img :src="item" alt="" class="img-view" />
            </div>
          </el-carousel-item>
        </el-carousel>
      </div>
      <div class="sw-box">
        <el-carousel class="carousel" :interval="5000" arrow="never">
          <el-carousel-item
            v-for="(item, index) in data.carouselPicList2"
            :key="index"
          >
            <div class="xxnm">
              <img :src="item" alt="" class="img-view" />
            </div>
          </el-carousel-item>
        </el-carousel>
      </div>
    </div>
    <div class="m-c-m2">
      <div class="lk0">
        {{ data.projectAbbreviation }}
      </div>
    </div>
  </div>
</template>
<script setup>
import { onMounted, watch, ref, toRaw } from 'vue'
import imgUrl46 from '@/assets/img/46.png'

const props = defineProps({
  data: {
    type: Object,
    default: () => {
      return {
        projectAbbreviation: '',
        carouselPicList1: [],
        carouselPicList2: []
      }
    }
  }
})
</script>
<style lang="scss" scoped>
.module11-m {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  padding: 20px 10px 10px 10px;
  box-sizing: border-box;
  gap: 10px;
  .module11-m-head {
    min-height: 1px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
    .module11-m-head-icon {
      display: flex;
      justify-content: center;
      align-content: center;
      .icon {
        width: 11px;
        height: 13px;
        display: block;
      }
    }
    .module11-m-head-title {
      /** 文本1 */
      font-size: 22px;
      font-weight: 400;
      letter-spacing: 1px;
      line-height: 28.6px;
      color: rgba(255, 255, 255, 1);
    }
  }
  .m-c-m1 {
    height: 150px;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    .sw-box {
      flex: 1;
      .carousel {
        width: 100%;
        height: 100%;
        border-radius: 6px;
        .xxnm {
          // width: 100%;
          // height: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          .img-view {
            // width: 100%;
            height: 100%;
            display: block;
          }
        }
      }
    }
  }
  .m-c-m2 {
    height: 250px;
    width: 100%;
    overflow: hidden;
    overflow-y: auto;
    scrollbar-width: none; /* firefox */
    -ms-overflow-style: none; /* IE 10+ */
    &::-webkit-scrollbar {
      display: none;
    }
    .lk0 {
      width: 100%;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0px;
      line-height: 19.21px;
      color: rgba(255, 255, 255, 1);
    }
  }
  .carousel {
    :deep(.el-carousel__indicators) {
      display: flex;
      flex-wrap: nowrap;
    }
  }
}
</style>
